import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'

const store = createPinia();

export function setupStore(app) {
    app.use(store);
    //注册pinia
    app.use(createPinia().use(piniaPluginPersist))//安装插件
}
export { store };
